﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Common
{
    public class ViewStateClass : System.Web.UI.UserControl 
    {
        public object viewState(string ViewStateName)
        {
            return ViewState[ViewStateName];
        }
       
        public void viewState(string ViewStateName, string ViewStateValue)
        {
            ViewState[ViewStateName] = ViewStateValue != null ? ViewStateValue : null;
        }
    }
}
